﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //var p = new Process();
            //p.StartInfo.FileName = "MESPro.exe";
            //p.StartInfo.Arguments = "7 系统管理员 zh_CN 1";
            //p.Start();
            var dic = Directory.GetFiles("C:\\Users\\kobe1\\source\\repos\\MESPro\\MESPro\\img");
            int a = 0;
            foreach (var file in dic)
            {
                var ext = Path.GetExtension(file);
                a++;
                string newpath = "C:\\Users\\kobe1\\source\\repos\\MESPro\\MESPro\\img\\" + a + ext;
                File.Move(file, newpath);
            }

        }
    }
}
